# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nemo-qml-plugin-contacts
# Can't be updated to a newer version as long as qtcontacts-sqlite isn't updated
pkgver=0.2.26
pkgrel=0
pkgdesc="Nemo QML contacts plugin"
url="https://github.com/sailfishos/nemo-qml-plugin-contacts"
arch="all"
license="BSD-3-Clause"
depends="qtcontacts-sqlite"
makedepends="
	libcontacts-dev
	libmlocale-dev
	mlite-dev
	qt5-qtbase-dev
	qt5-qtpim-dev
	qt5-qttools-dev
	qtchooser
	qtcontacts-sqlite-dev
	"
source="https://github.com/sailfishos/nemo-qml-plugin-contacts/archive/$pkgver/nemo-qml-plugin-contacts-$pkgver.tar.gz
	update-api-for-qtpim-5.9.patch
	"
options="!check" # No tests

build() {
	qmake-qt5
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install

	# Remove installed tests
	rm -r "$pkgdir"/opt
}

sha512sums="
a2b05b548fad0e2e6da45e6e74ac75da0d1862c9f9f8d96ff7e1f769340a81deab0d695b150e694e7db47f5148735be4bf15d28fa96218994a2396a1f5f3a09c  nemo-qml-plugin-contacts-0.2.26.tar.gz
cd64ebceaf8adf07bfac0d3bc07017953749bb3b3f726d2bc9698a6a7c0485c725a06287934f7cfa2b15fae65bf6c75d57a756d2b27dc6f2cfa47219017bff15  update-api-for-qtpim-5.9.patch
"
